package org.HisCanvas.ChrisRiffle.JFlightLog.swingUi.mainTopFrame;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;

import org.HisCanvas.ChrisRiffle.JFlightLog.swingUi.graphPanel.GraphPanelController;
import org.HisCanvas.ChrisRiffle.JFlightLog.swingUi.mainFrameMenu.MainFrameMenuController;
import org.HisCanvas.ChrisRiffle.JFlightLog.swingUi.mainFrameToolBar.MainFrameToolBarController;
import org.HisCanvas.ChrisRiffle.JFlightLog.swingUi.summaryPanel.LogBookSummaryPanelController;
import org.HisCanvas.ChrisRiffle.JFlightLog.swingUi.table.FlightLogTableController;




/**
 * FlightLogMainFrame
 * @author RIF
 */
public class FlightLogMainFrame extends JFrame{
	
	

	
	
	
//	private static final Dimension TABLE_SIZE = new Dimension(300,300);
	
	
	/**
	 * constructor
	 */
	public FlightLogMainFrame() {
		init();
	}

	
	
	/**
	 * init
	 */
	private void init() {
		
		setLayout(new BorderLayout());
		
		setJMenuBar(MainFrameMenuController.instance().getMenuBar());
		
		add(MainFrameToolBarController.instance().getMainFrameToolbar(), BorderLayout.PAGE_START);		
				
		
		add(GraphPanelController.instance().getGraphPanel(), BorderLayout.CENTER);
		
		add(LogBookSummaryPanelController.instance().getSummaryPanel(), BorderLayout.LINE_END);
		
		
		add(FlightLogTableController.instance().getLogBookTableScrollPane(), BorderLayout.PAGE_END);
	}
	
	
	


}



